from rest_framework.serializers import ModelSerializer
from .models import *

class UserSer(ModelSerializer):
    class Meta:
        model = User
        fields = ['id','username','phone']


class UserSer1(ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'

class AccessSer(ModelSerializer):
    class Meta:
        model = AccessMoedl
        fields = '__all__'


class GongdanSer(ModelSerializer):
    class Meta:
        model = Gongdan
        fields = '__all__'


class MobanSer(ModelSerializer):
    class Meta:
        model = Moban
        fields = "__all__"